/**
 * @Author: hs
 * @Description:
 * @Date: Create in 16:07 2019/8/20
 */
public class BinaryTest {
    public static void main(String[] args) {
       /* System.out.println("十转二："+Integer.toBinaryString(120));
        System.out.println("十转八："+Integer.toOctalString(120));
        System.out.println("十转十六："+Integer.toHexString(120));
        System.out.println("二转十："+Integer.valueOf("1010",2));
        System.out.println("八转十："+Integer.valueOf("125",8));
        System.out.println("十六转十："+Integer.valueOf("ABCDEF",16));
        System.out.println(Integer.reverse(1024));*/

        System.out.println(Integer.toBinaryString(1024));
        System.out.println(Integer.toHexString(1024));

    }
}
